<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>File Source for lotroapi.config.php</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
						<h1>Source for file lotroapi.config.php</h1>
<p>Documentation is available at <a href="../data.lotro.com PHP Helper Class/_src---lotroapi.config.php.html">lotroapi.config.php</a></p>
<div class="src-code">
<div class="src-code"><ol><li><div class="src-line"><a name="a1"></a><span class="src-php">&lt;?php</span></div></li>
<li><div class="src-line"><a name="a2"></a><span class="src-doc">/**</span></div></li>
<li><div class="src-line"><a name="a3"></a><span class="src-doc">&nbsp;*</span></div></li>
<li><div class="src-line"><a name="a4"></a><span class="src-doc">&nbsp;*&nbsp;Distributed&nbsp;under&nbsp;the&nbsp;terms&nbsp;of&nbsp;the&nbsp;Eclipse&nbsp;Public&nbsp;License&nbsp;-&nbsp;v&nbsp;1.0&nbsp;(see&nbsp;epl-v10.html)</span></div></li>
<li><div class="src-line"><a name="a5"></a><span class="src-doc">&nbsp;*</span></div></li>
<li><div class="src-line"><a name="a6"></a><span class="src-doc">&nbsp;*&nbsp;If&nbsp;you&nbsp;use&nbsp;this&nbsp;software&nbsp;please&nbsp;consider&nbsp;contributing&nbsp;your&nbsp;revisions&nbsp;or&nbsp;extensions&nbsp;back</span></div></li>
<li><div class="src-line"><a name="a7"></a><span class="src-doc">&nbsp;*&nbsp;to&nbsp;the&nbsp;google&nbsp;code&nbsp;project&nbsp;at:</span></div></li>
<li><div class="src-line"><a name="a8"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;http://code.google.com/p/data-lotro-com-php-helper-class/</span></div></li>
<li><div class="src-line"><a name="a9"></a><span class="src-doc">&nbsp;*</span></div></li>
<li><div class="src-line"><a name="a10"></a><span class="src-doc">&nbsp;*&nbsp;Also&nbsp;consider&nbsp;adding&nbsp;an&nbsp;acknowledgement&nbsp;to&nbsp;your&nbsp;website:</span></div></li>
<li><div class="src-line"><a name="a11"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;&quot;This&nbsp;site&nbsp;uses&nbsp;the&nbsp;data.lotro.com&nbsp;PHP&nbsp;helper&nbsp;class&nbsp;provided&nbsp;by&nbsp;Chris&nbsp;Thomson&nbsp;and&nbsp;Renkosi.com&quot;</span></div></li>
<li><div class="src-line"><a name="a12"></a><span class="src-doc">&nbsp;*</span></div></li>
<li><div class="src-line"><a name="a13"></a><span class="src-doc">&nbsp;*&nbsp;Change&nbsp;Log:</span></div></li>
<li><div class="src-line"><a name="a14"></a><span class="src-doc">&nbsp;*</span></div></li>
<li><div class="src-line"><a name="a15"></a><span class="src-doc">&nbsp;*&nbsp;v0.2&nbsp;-&nbsp;Split&nbsp;off&nbsp;from&nbsp;main&nbsp;file&nbsp;for&nbsp;convience.&nbsp;(CTHOMSON&nbsp;-&nbsp;16/5/2009)</span></div></li>
<li><div class="src-line"><a name="a16"></a><span class="src-doc">&nbsp;*&nbsp;v0.3&nbsp;-&nbsp;Added&nbsp;the&nbsp;option&nbsp;to&nbsp;use&nbsp;Curl&nbsp;to&nbsp;get&nbsp;files,&nbsp;incase&nbsp;the&nbsp;server&nbsp;has&nbsp;fopen&nbsp;diasables&nbsp;for&nbsp;URLs&nbsp;&nbsp;(CTHOMSON&nbsp;-&nbsp;17/5/2009)</span></div></li>
<li><div class="src-line"><a name="a17"></a><span class="src-doc">&nbsp;*</span></div></li>
<li><div class="src-line"><a name="a18"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@author</span><span class="src-doc">&nbsp;Chris&nbsp;Thomson&nbsp;&lt;renkosi@smog-it.co.uk&gt;</span></div></li>
<li><div class="src-line"><a name="a19"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@copyright</span><span class="src-doc">&nbsp;Copyright&nbsp;(c)&nbsp;2009,&nbsp;Chris&nbsp;Thomson</span></div></li>
<li><div class="src-line"><a name="a20"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@version</span><span class="src-doc">&nbsp;0.3</span></div></li>
<li><div class="src-line"><a name="a21"></a><span class="src-doc">&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a22"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a23"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a24"></a><span class="src-comm">////////////////////////////////////////////////////</span></div></li>
<li><div class="src-line"><a name="a25"></a><span class="src-comm">//&nbsp;USER&nbsp;CONFIGRABLE&nbsp;SETTINGS.</span></div></li>
<li><div class="src-line"><a name="a26"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a27"></a><span class="src-doc">/**&nbsp;The&nbsp;directory&nbsp;where&nbsp;cache&nbsp;files&nbsp;will&nbsp;be&nbsp;kept.&nbsp;The&nbsp;webserver&nbsp;must&nbsp;be&nbsp;able&nbsp;to&nbsp;write&nbsp;to&nbsp;this&nbsp;directory!&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a28"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">&quot;DATA_LOTRO_COM_CACHE_DIRECTOY&quot;</span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;./cache&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a29"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a30"></a><span class="src-doc">/**&nbsp;Your&nbsp;developer&nbsp;name&nbsp;for&nbsp;data.lotro.com&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a31"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">&quot;DATA_LOTRO_COM_DEVELOPER&quot;</span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;YOUR_DEVELOPER_NAME&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a32"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a33"></a><span class="src-doc">/**&nbsp;Your&nbsp;API-Key&nbsp;for&nbsp;data.lotro.com&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a34"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">&quot;DATA_LOTRO_COM_API_KEY&quot;</span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;YOUR_API_KEY&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a35"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a36"></a><span class="src-doc">/**&nbsp;Time&nbsp;in&nbsp;milliseconds&nbsp;to&nbsp;cache&nbsp;data,&nbsp;24hrs&nbsp;is:&nbsp;86400000&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a37"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">&quot;DATA_LOTRO_COM_CACHE_TIME&quot;</span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;86400000&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a38"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a39"></a><span class="src-doc">/**&nbsp;The&nbsp;data.lotro.com&nbsp;server&nbsp;address&nbsp;(may&nbsp;need&nbsp;to&nbsp;be&nbsp;changed&nbsp;for&nbsp;non-US&nbsp;regions)&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a40"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">&quot;DATA_LOTRO_COM_SERVER&quot;</span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;http://data.lotro.com&quot;</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a41"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a42"></a><span class="src-doc">/**&nbsp;</span></div></li>
<li><div class="src-line"><a name="a43"></a><span class="src-doc">&nbsp;*&nbsp;set&nbsp;to&nbsp;true&nbsp;to&nbsp;use&nbsp;curl&nbsp;to&nbsp;get&nbsp;the&nbsp;data,&nbsp;false&nbsp;to&nbsp;use&nbsp;fopen.&nbsp;If&nbsp;you&nbsp;get&nbsp;an&nbsp;error&nbsp;with&nbsp;one&nbsp;method,&nbsp;try&nbsp;the&nbsp;other!</span></div></li>
<li><div class="src-line"><a name="a44"></a><span class="src-doc">&nbsp;*</span></div></li>
<li><div class="src-line"><a name="a45"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@since</span><span class="src-doc">&nbsp;0.3</span></div></li>
<li><div class="src-line"><a name="a46"></a><span class="src-doc">&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a47"></a><a href="http://www.php.net/define">define</a><span class="src-sym">(</span><span class="src-str">&quot;DATA_LOTRO_COM_USE_CURL&quot;</span><span class="src-sym">,&nbsp;</span><span class="src-id">true</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a48"></a><span class="src-php">?&gt;</span></div></li>
</ol></div>
</div>
	<p class="notes" id="credit">
		Documentation generated on Sun, 17 May 2009 13:30:07 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a>
	</p>
	</body>
</html>